﻿/**
* @file MAX6675.h
* @brief this is a brief description
* @details this is the detail description.
* @author fulong 
* @data 2015/1/7
* @version 1.0
* @par Copyright (c):
* @par First build
*     version: fulong 
*     data: 2015/1/7
*/
#ifndef __MAX6675_H__
#define __MAX6675_H__
#include "../hal_include/hal_types.h"

#define THIRD_STATUS_MASK 1
#define THIRD_STATUS_CHECK_OK 1
#define THIRD_STATUS_CHECK_FAIL 0
#define DEV_ID_MASK 2
#define DEV_ID_CHECK_OK 0
#define DEV_ID_CHECK_FAIL 1
#define THERMOCOUPLE_CHECK_MASK 4
#define THERMOCOUPLE_CHECK_OK 0
#define THERMOCOUPLE_CHECK_FAIL 1

#define K_TABLE_INDEX_LEN 12
#define K_TABLE_LEN 110
extern void max6675_init(void);
extern uint16  get_max6675_data(void);
#endif /* __MAX6675_H__ */


